<template>
  <view class="hold-back-card">
    <view class="top">
      <span class="text">
        胆码:
        <span class="clock">{{ boldCode }}</span>
      </span>
      <!-- <view class="trend">趋势图</view> -->
    </view>
    <view class="bottom">
      拖码:
      <span
        class="clock"
        v-for="(towingCode, index) in towingCodeList"
        :key="index"
      >
        {{ towingCode }}
        <span v-if="index !== towingCodeList.length - 1">,</span>
      </span>
    </view>
  </view>
</template>

<script>
export default {
  props: {
    boldCode: {
      type: String,
      default: '',
    },
    towingCodeList: {
      type: Array,
      default: () => [],
    },
  },
}
</script>

<style lang="scss">
.hold-back-card {
  background: rgba(237, 242, 246, 1);
  width: 654upx;
  padding: 20upx;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
  color: rgba(51, 51, 51, 1);
  font-size: 32upx;
  min-height: 148upx;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  .bottom {
	  flex: 1;
	  width: 100%;
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
  }
  .top {
	flex: 1;
	width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .text {
      flex: 1;
	  display: flex;
	  align-items: center;
    }
    .trend {
      display: inline-block;
      border-radius: 30upx;
      border: 2upx solid rgba(9, 21, 34, 1);
      padding: 0 16upx;
      height: 60upx;
      line-height: 56upx;
    }
  }
  .clock {
    margin-left: 20upx;
  }
}
</style>
